// ==UserScript==
// @name         open wechat app
// @name:zh      打开微信app
// @namespace    http://tampermonkey.net/
// @version      2025-05-19
// @homepage          https://gitee.com/fengdiewang/tampermonkey-scripts/blob/master/01_OpenWechat/index.js
// @description  Open the WeChat software on the computer after clicking on the Microsoft link on the phone's WeChat prompt
// @description:zh  在点击微软链接手机的微信提示后打开电脑端的微信软件
// @updateURL    https://gitee.com/fengdiewang/tampermonkey-scripts/raw/master/01_OpenWechat/index.js
// @downloadURL  https://gitee.com/fengdiewang/tampermonkey-scripts/raw/master/01_OpenWechat/index.js
// @author       Wang Fengdie
// @match        https://www.wechat.com/
// @icon         https://res.wx.qq.com/a/wx_fed/assets/res/NTI4MWU5.ico
// @grant window.close
// ==/UserScript==

(function() {
    'use strict';
    window.location.replace("weixin://");
    setTimeout(() => {
        window.close();
    }, 1000);
})();